﻿<Page x:Class="WpfPathExample.PageRectangleWithArrow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d"  Background="Gray"
      d:DesignHeight="382" d:DesignWidth="1030"
	Title="PageRectangleWithArrow">

    <Grid>
       
        <!--<Path Stroke="White" HorizontalAlignment="Center"   VerticalAlignment="Center" StrokeThickness=".5"  x:Name="pathTest" Margin="429,150,393,150">
            <Path.Fill>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"  >
                    <LinearGradientBrush.GradientStops>
                        <GradientStop Offset="0.01" Color="#AA000000" />
                        <GradientStop Offset="0.1"  Color="#cc000000" />
                        <GradientStop Offset="0.8"  Color="#55000000" />
                        <GradientStop Offset=".9"  Color="#bb000000" />
                    </LinearGradientBrush.GradientStops>
                </LinearGradientBrush>

            </Path.Fill>
        </Path>-->
        <Border   Height="136" HorizontalAlignment="Stretch" Margin="117,100,565,146" 
                Name="border2" VerticalAlignment="Stretch" Width="349" >
            <Border.Background>
                <DrawingBrush  >
                    <DrawingBrush.Drawing>
                        <GeometryDrawing >
                            <GeometryDrawing.Brush>
                                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"  >
                                    <LinearGradientBrush.GradientStops>
                                        <GradientStop Offset="0.01" Color="#AA000000" />
                                        <GradientStop Offset="0.1"  Color="#cc000000" />
                                        <GradientStop Offset="0.8"  Color="#55000000" />
                                        <GradientStop Offset=".9"  Color="#bb000000" />
                                    </LinearGradientBrush.GradientStops>
                                </LinearGradientBrush>
                            </GeometryDrawing.Brush>
                            <GeometryDrawing.Geometry>
                                <PathGeometry>
                                    <PathFigure IsClosed="True"  StartPoint="10,0">
                                        <LineSegment Point="570,0" />
                                        <BezierSegment Point1="575,0" Point2="580,5" Point3="580,10" />
                                        <LineSegment Point="580,170" />
                                        <BezierSegment Point1="580,175" Point2="575,180" Point3="570,180" />
                                        <LineSegment Point="420,180" />
                                        <LineSegment Point="440,200" />
                                        <LineSegment Point="460,180" />
                                        <LineSegment Point="10,180" />
                                        <BezierSegment Point1="5,180" Point2="0,175" Point3="0,170" />
                                        <LineSegment Point="0,10" />
                                        <BezierSegment Point1="0,5" Point2="5,0" Point3="10,0" />
                                    </PathFigure>
                                </PathGeometry>

                            </GeometryDrawing.Geometry>
                        </GeometryDrawing>
                    </DrawingBrush.Drawing>
                </DrawingBrush>
            </Border.Background>
        </Border>
    </Grid>
</Page>
